 function afficheInfos(){
  	
	$('.partition').each(function( index ) {
		// console.log( index + ": " + $(this).text() );
		
		var part = $(this).attr('id');
		var partId = part.replace("partition","");
		$('#'+part).click(function (){
			document.getElementById("detail").style.visibility = "visible";
			var request = $.ajax({
				type: "POST",
				url: "./ajax/infosPart.php",
				data: { id: partId },
				dataType: "json"
			});
				
			request.done(function( datas ) {
				var id_partition = datas.partId;
				$('#info_detail .groupe').text(datas.auteur);
				$('#detail h3').text(datas.nom);
				$('#detail h2').text(datas.concert);
				inst = $('#partition2 .instrument').text();
				$('#info_detail .instrument').text(inst);
				$('#bouton_jouer .bouton').attr('href',"partition.php?partId="+id_partition);

				$('#musiciens li').remove();
				$.each(datas.users,function(i,user){
					var msg = '<li>'+user.instrument+' : '+user.nom+' '+user.prenom+'</li>';
				   $('#musiciens').append(msg);
				 });

				
			}); //end done
			
			
		}); //end click
	}); // end each
  }

 